package mediator;

/**
 * 4.组件实现
 */
public class ComponentA extends Component{

    public ComponentA(Mediator mediator) {
        super(mediator);
    }

    @Override
    public void exec(String key) {
        System.out.println("组件A中执行中介数据：");
        getMediator().apply(key);
    }
}
